﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Permission.Validator;
using Microhard.Core.DBUtility;

namespace Microhard.Permission.Models
{
    [FluentValidation.Attributes.Validator(typeof(DictionaryModelValidator))]
    public class DictionaryModel
    {
        public Guid DataID { set; get; }
        public string Name { set; get; }
        public string Type { set; get; }
        public Guid Value { set; get; }
        public DateTime CreateTime { set; get; }
        public bool Status { set; get; }
        public string StatusDisplay
        {
            get
            {
                return Status == true ? "有效" : "无效";
            }
        }
    }
}
